<div class="fui-list-group"  style="margin-top:0">
	<div class="fui-list" style="align-items:flex-start;">
				<div class="fui-list-inner">
							<div href="javascript:;" ng-click="access_json(item.url)" class="title" style="font-size:0.76rem">
								<span class="fui-tag fui-tag-danger" style="margin-right:0.2rem;background:linear-gradient(to right,rgba(244,221,187,0.6),rgba(235,216,174,1));color:#512f0a;width:auto;font-weight:400">{{item.typename}}</span>
								<span class="bold"> {{item.merch.merchname}}</span>
							</div>
				</div>
				<div class="angle">
				</div>
	</div>
    <div ng-repeat="g in item.list" class="fui-list goods-item align-start">
        <div class="fui-list-media">
            <a href="javascript:;" ng-click="access_json('/goods.detail//id='+g.goodsid)">
                <img class="round" ng-src="{{tomedia(g.image)}}">
            </a>
        </div>
        <div class="fui-list-inner" style="height:auto">
            <a href="javascript:;" ng-click="access_json('/goods.detail//id='+g.goodsid)">
                <div class="subtitle">{{g.title}}</div>
                <div class="text" style="font-size:0.5rem" ng-if="g.optionid">{{g.optiondata || '默认规格'}}</div>
            </a>
			<!--配送区域完成-->
			<div ng-if="g.has_city==1" class='subtitle' style="color:#999">
				<span ng-if="g.isdispatcharea==0" class='fui-cell-label' style="width:auto">不配送区域:</span>
				<span ng-if="g.isdispatcharea!=0" class='fui-cell-label' style="width:auto">只配送区域:</span>
				<span ng-repeat="(ke,v) in g.citys" class="fui-tag fui-tag-red-o sale-tip">{{ke}}</span>
			</div>
			<div class='price'>
				<span class="bigprice text-danger">￥<span ng-if="!g.active.price" class='marketprice'>{{g.price}}</span><span ng-if="g.active.price" class='marketprice'>{{g.active.price}}</span> <span ng-if="g.active.title" class='red' style="font-size:0.65rem;font-weight:400"> {{g.active.title}}</span> <span ng-if="g.buyxiu_de_price>0" style="font-size:0.65rem;font-weight:400" class='red'>买家秀 -￥{{g.buyxiu_de_price}}</span></span>
				<span class="num bold">x {{g.total}}</span>
			</div>
        </div>
    </div>
    <script type="text/javascript">
        $(function(){
            $(".package-goods-img").height($(".package-goods-img").width());
        })
    </script>
 
</div>
<!--
<div class="fui-cell-group" style="margin-top:-10px">
	<div class="fui-cell">
        <div class="fui-cell-label" style="width:100px">配送方式</div>
        <div class="fui-cell-text bold r"><span style="color:red">快递配送</span>(预计:{{item.post.deliverytime}}送达)</div>
		<div class="fui-cell-remark" onclick="$('#showdelivery').modal();"></div>
    </div>
</div>-->
<div class="fui-cell-group">
    <div ng-repeat="gift in item.gifts" class="fui-cell" style="padding:0 ">
            <div class="fui-list goods-item" style="width:100%;">
                <div class="fui-list-media image-media" style="position: initial;">
                    <a href="javascript:void(0);">
                        <img class="round" ng-src="{{tomedia(gift.image)}}" >
                    </a>
                </div>
                <div class="fui-list-inner">
                    <a href="javascript:void(0);">
                        <div class="text" style="color: #000">
                            {{gift.title}}<br /><span class="fui-label fui-label-danger">赠品</span>
                        </div>
                    </a>
                </div>
                <div class='fui-list-angle' ng-if="gift.price">
                    <span class="price" style="display: inline-block;font-size:.65rem;color: #000 ">&yen;<del class='marketprice'>{{gift.price}}</del></span>
                </div>
            </div>
    </div>
	<div id='coupondiv' class="fui-cell fui-cell-click">
		<div class='fui-cell-label' style='width:auto;'>优惠券</div>
		<div class='fui-cell-text bold r'>{{item.post.title5}}</div>
		<div class="fui-cell-remark" ng-click="pagedata.coupons=item.coupons;pagedata.showcoupon($index);" onclick="">
			<div ng-if="item.coupons.length>1" class="badge">{{item.coupons.length}}</div>
			<span ng-if="item.coupons.length<=0" class='text'>{{item.merchid>0?'无该商户可用优惠券':'无可用'}}</span>
		</div>
	</div>
	<div class="fui-cell" onclick="$('#showremark').modal();">
        <div class="fui-cell-label" style="width:100px">买家留言</div>
        <div class="fui-cell-text bold r"><span ng-model="item.post.remark" style="color:red">选填</span>({{item.post.remark ? item.post.remark :'50字以内:亲,加急哦!'}})</div>
		<div class="fui-cell-remark" ></div>
    </div>
</div>
<div ng-include="sys_html('common/_diyform',true)"></div>
<div class="fui-cell-group">
	<div class="fui-cell">
			<div class="fui-cell-label" style="width:100px">商品金额</div>
			<div class="fui-cell-info"></div>
			<div class="fui-cell-remark noremark bold">&yen; <span class='dispatchprice'>
			{{price(item.total_price) || '0.00'}}
			</span></div>
	</div>
	<div ng-if="item.taskdiscountprice" class="fui-cell istaskdiscount">
        <div class="fui-cell-label" style='width:auto' >任务活动优惠</div>
        <div class="fui-cell-info"></div>
        <div class="fui-cell-remark noremark bold">-&yen; <span id='showtaskdiscountprice' class='dispatchprice'>{{item.taskdiscountprice}}</span></div>
    </div>
    <div ng-if="item.taskcut>0" class="fui-cell taskcut" >
        <div class="fui-cell-label" style='width:auto' >任务中心优惠</div>
        <div class="fui-cell-info"></div>
        <div class="fui-cell-remark noremark bold">-&yen; <span id='showtaskcut' class='dispatchprice'>{{item.taskcut}}</span></div>
    </div>
    <div ng-if="item.lotterydiscountprice>0" class="fui-cell islotterydiscount">
        <div class="fui-cell-label" style='width:auto' >游戏活动优惠</div>
        <div class="fui-cell-info"></div>
        <div class="fui-cell-remark noremark bold">-&yen; <span id='showlotterydiscountprice' class='dispatchprice'>{{item.lotterydiscountprice}}</span></div>
    </div>
    <div ng-if="item.level_de_price>0" class="fui-cell discount">
        <div class="fui-cell-label" style='width:auto' >会员优惠</div>
        <div class="fui-cell-info"></div>
        <div class="fui-cell-remark noremark bold">-&yen; <span id='showdiscountprice' class='dispatchprice'>{{price(item.level_de_price)}}</span></div>
    </div>
	<div ng-if="item.luck_de_price>0" class="fui-cell discount">
        <div class="fui-cell-label" style='width:auto' >运势优惠</div>
        <div class="fui-cell-info"></div>
        <div class="fui-cell-remark noremark bold">-&yen; <span id='showdiscountprice' class='dispatchprice'>{{price(item.luck_de_price)}}</span></div>
    </div>
	<div ng-if="item.buyxiu_de_price>0" class="fui-cell discount">
        <div class="fui-cell-label" style='width:auto' >买家秀优惠</div>
        <div class="fui-cell-info"></div>
        <div class="fui-cell-remark noremark bold">-&yen; <span id='showdiscountprice' class='dispatchprice'>{{price(item.buyxiu_de_price)}}</span></div>
    </div>
    <div ng-if="item.isdiscountprice>0" class="fui-cell isdiscount">
        <div class="fui-cell-label" style='width:auto' >促销优惠</div>
        <div class="fui-cell-info"></div>
        <div class="fui-cell-remark noremark bold">-&yen; <span id='showisdiscountprice' class='dispatchprice'>{{price(item.isdiscountprice)}}</span></div>
    </div>
    <div ng-if="pagedata.saleset.enough.length>0" class="fui-cell" id="deductenough">
		<div class="fui-cell-label" style='width:auto' >商城优惠 <span style="font-size: .6rem">：单笔满 ￥<span id="deductenough_enough">{{item.enough.man}}</span> 元立减￥{{item.enough.jian}}</span></div>
		<div class="fui-cell-info"></div>
		<div class="fui-cell-remark noremark bold">-&yen; <span class='dispatchprice'>{{price(item.enough.jian)}}</span></div>
	</div>
	<div ng-if="item.sale_enough.length>0" class="fui-cell" id="merch_deductenough">
		<div class="fui-cell-label" style='width:auto' >单笔满 <span id="merch_deductenough_enough" class='text-danger'>{{item.sale_enough[0].man}}</span> 元立减</div>
		<div class="fui-cell-info"></div>
		<div class="fui-cell-remark noremark bold">-&yen; <span class='dispatchprice'>{{price(item.sale_enough[0].jian)}}</span></div>
	</div>
	<div ng-if="item.deduct_credit>0" class="fui-cell discount">
        <div class="fui-cell-label" style='width:auto' >积分抵扣（消耗积分<span class="red">{{item.delcredit1}}</span>）</div>
        <div class="fui-cell-info"></div>
        <div class="fui-cell-remark noremark bold">-&yen; <span id='showdiscountprice' class='dispatchprice'>{{price(item.deduct_credit)}}</span></div>
    </div>
	<div ng-if="item.last_cardfee>0" class="fui-cell discount">
        <div class="fui-cell-label" style='width:auto'>购物卡抵扣（面值余额<span class="red">{{item.last_cardfee}}</span>）</div>
        <div class="fui-cell-info"></div>
        <div class="fui-cell-remark noremark bold">
		-&yen; 
		<span ng-show="pagedata.post.sendtype==1" class='dispatchprice'>{{item.di_cardfee}}</span>
		<span ng-show="pagedata.post.sendtype!=1" class='dispatchprice'>{{item.no_dispatch_cardfee}}</span>
		<span style="width:2rem"><input class="weui_switch" type="checkbox" ng-checked="item.post.no_di_cardfee!=1" ng-click="pagedata.no_di_cardfee($index);"></span>
		</div>
    </div>
	<div ng-if="item.seckillprice" class="fui-cell" id="seckillprice">
		<div class="fui-cell-label" style='width:auto' >秒杀优惠</div>
		<div class="fui-cell-info"></div>
		<div class="fui-cell-remark noremark bold">-&yen; <span class='dispatchprice'>{{price(item.seckillprice)}}</span></div>
	</div>
	<div ng-if="item.packageprice" class="fui-cell" id="showpackageprice">
		<div class="fui-cell-label" >套餐优惠</div>
		<div class="fui-cell-info"></div>
		<div class="fui-cell-remark noremark bold">
			&yen; <span class='packageprice'>-{{price(item.packageprice)}}</span>
		</div>
	</div>
	<div ng-if="item.post.couponid" class="fui-cell">
		<div class="fui-cell-label" style='width:auto' >{{item.post.title5}}(优惠券)</div>
		<div class="fui-cell-info"></div>
		<div ng-if="item.post.backtype!=1" class="fui-cell-remark noremark bold">-&yen; <span class='dispatchprice'>{{item.post.deduct}}</span></div>
		<div ng-if="item.post.backtype==1" class="fui-cell-remark noremark bold"><span class='dispatchprice'>{{item.post.discount}}</span>折</div>
	</div>
	<div ng-if="item.credit" class="fui-cell">
		<div class="fui-cell-label">送积分</div>
		<div class="fui-cell-info"></div>
		<div class="fui-cell-remark noremark bold">
			<span class='packageprice'><span class="red">{{item.credit}}</span>个</span>
		</div>
	</div>
	<div ng-repeat="cv in item.credit3" class="fui-cell">
		<div class="fui-cell-label">送{{cv.title}}</div>
		<div class="fui-cell-info"></div>
		<div class="fui-cell-remark noremark bold">
			<span class='packageprice'><span class="red">{{cv.credit}}</span>个</span>
		</div>
	</div>
	<div ng-if="item.fang_credit2>0" class="fui-cell">
		<div class="fui-cell-label">返现</div>
		<div class="fui-cell-info"></div>
		<div class="fui-cell-remark noremark bold">
			<span class='packageprice'>￥{{item.fang_credit2}}</span>
		</div>
	</div>
	<div ng-if="item.post.sendtype==1" class="fui-cell" id="showdispatchprice">
		<div ng-if="item.is_peisong!=1" class="fui-cell-label" style="width:auto">运费（总重:{{item.total_weight}}g）<span ng-if="item.baoyou_man>0" class="subtitle">满{{item.baoyou_man}}元包邮</span></div>
		<div ng-if="item.is_peisong==1" class="fui-cell-label" style="width:auto">配送费（{{item.peisong_juli}}km）<span ng-if="item.baoyou_man>0" class="subtitle">满{{item.baoyou_man}}元免配送费</span><span ng-if="item.teshufee>0" class="subtitle">恶劣环境费￥{{item.teshufee}}</span><span ng-if="item.lateye_fee>0" class="subtitle">深夜费￥{{item.lateye_fee}}</span></div>
		<div class="fui-cell-info"></div>
		<div class="fui-cell-remark noremark bold">&yen; <span class="dispatchprice">{{price(item.dispatchprice) || '0.00'}}</span> <span ng-if="item.isonebaoyou" class="subtitle">部分免邮</span> <span ng-if="item.addbaoyoufee>0" class="delete">{{price(item.addbaoyoufee) || '0.00'}}</span></div>
	</div>
	<div ng-if="item.out_upfee>0" class="fui-cell">
		<div class="fui-cell-label">打包费</div>
		<div class="fui-cell-info"></div>
		<div class="fui-cell-remark noremark bold">
			<span class='dispatchprice'>￥{{item.out_upfee}}</span>
		</div>
	</div>
</div>
<div class="fui-cell-group" style="margin-top:0">
					<div class="fui-cell">
						 <div class="fui-cell-label" style='width:auto'>已优惠:{{item.post.youprice || '0.00'}}</div>
						 <div class="fui-cell-info">
						 <div href="javascript:;" class="btn buybtn" ng-if="(item.no_out_price>0 || item.isnoarea==1) && pagedata.post.sendtype==1">
							<div class="fee-disabled-nav">
								{{item.no_out_price>0?'满'+item.no_out_price+'元起送':''}}
								{{item.isnocity==1?'不在同城':'超出配送范围'}}
								{{item.maxout_juli && item.isnocity==1 ?item.maxout_juli+'km':''}}
							</div>
						 </div>
						 </div>
						 <div class="fui-cell-remark noremark bold">
						 <div ng-class="{'merchfee-disabled-nav':item.total<=0,'merchfee-tag-nav':item.total>0}">
								合计：
								<span ng-show="pagedata.post.sendtype==1" class="text-danger bigprice">&yen; 
									<span class="totalprice" style="font-size:1rem">{{price(item.post.endprice) || '0.00'}}</span>
								</span>
								<span ng-show="pagedata.post.sendtype!=1" class="text-danger bigprice">&yen; 
									<span class="totalprice" style="font-size:1rem">{{price(item.post.no_dispatch_price) || '0.00'}}</span>
								</span>
						 </div>
						 </div>
					</div>
</div>